sched_credit: Raise bar for inter-socket migrations on mostly-idle systems
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Sep 2010 17:49:15 +0000 (18:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Sep 2010 17:49:15 +0000 (18:49 +0100)
commit6d6b9b99aa0b6df81ffd8ae7e6d99e0aca8aa645
tree00c48a3ecbe21674947bf723acf215d68ce56ff4
parent744d6961f91581f603c0f285f52c4b23fa30ad4c
sched_credit: Raise bar for inter-socket migrations on mostly-idle systems

The credit scheduler ties to keep work balanced, even on a mostly idle
system.  Unfortunately, if you have one VM burning cpu and another VM
idle, the effect is that the busy VM will flip back and forth between
sockets.

This patch addresses this, by only migrating to a different socket if
the number of idle processors is twice that of the socket the vcpu is
currently on.

This will only affect mostly-idle systems; as the system becomes more
busy, other load-balancing code will come into effect.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit.c